<!--
  Copyright 2018 The Outline Authors

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<link rel='import' href='../bower_components/polymer/polymer.html'>
<link rel='import' href='../bower_components/paper-dialog/paper-dialog.html'>

<link rel="import" href="./cloud-install-styles.html">

<dom-module id="outline-about-dialog">
  <template>
    <style include="cloud-install-styles">
      #dialog {
        width: 80%;
        text-align: center;
      }

      #outlineLogo {
        height: 100px;
        margin-top: 20px;
      }

      #version {
        font-weight: bold;
      }

      p {
        margin: 20px 0 0 0;
        text-align: left;
      }

      #version {
        margin: 0;
        text-align: center;
      }

      a {
        color: #00AC9B;
      }

      #licenses {
        min-width: 90%;
      }

      #licenses code {
        font-size: 0.7em;
      }
    </style>

    <paper-dialog id="dialog" modal>
      <div>
        <img id="outlineLogo" src="images/manager-about-logo2x.png">
      </div>
      <p id='version'>Version [[outlineVersion]]</p>
      <p>Outline is an open source project created by <a href="https://jigsaw.google.com/">Jigsaw</a> to provide a safer way for news organizations and journalists to access the internet.  Learn more about Outline on <a href="https://s3.amazonaws.com/outline-vpn/index.html">our website</a>.</p>
      <p>Outline is powered by <a href="https://shadowsocks.org">Shadowsocks</a> and is still an early stage project.  You can contribute to the code on <a href="https://github.com/jigsaw-Code/?q=outline">GitHub</a>, and follow us on <a href="https://www.reddit.com/r/outlinevpn/">Reddit</a> and <a href="https://medium.com/jigsaw">Medium</a> to hear when we expand to more platforms and add new features.</p>
      <p>
        <a href="https://jigsaw.google.com/">
          <img src="images/jigsaw-logo.svg">
        </a>
      </p>
      <div class="buttons">
        <paper-button dialog-dismiss autofocus>Close</paper-button>
      </div>
    </paper-dialog>
  </template>

  <script>
    Polymer({
      is: 'outline-about-dialog',
      properties: {
        outlineVersion: String
      },
      open: function () {
        this.$.dialog.open();
      }
    });
  </script>
</dom-module>
